﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Common.Case.WebsiteCase;
using BCDto.Common.Case.WebsiteCase;
using BCDto.Sim.Admin.Admin;
using BCEntity.Common.Case.WebsiteCase;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Common.Case.WebsiteCase
{
    /// <summary>
    /// 官网案例
    /// </summary>
    public interface IWebsiteCaseService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="websiteCaseId">官网案例Id</param>
        bool Exists(int websiteCaseId);
        /// <summary>
        /// 添加官网案例
        /// </summary>
        /// <param name="requestDto">官网案例信息</param>
        /// <param name="adminDto">管理员信息</param>
        WebsiteCaseDto Add(WebsiteCaseRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新官网案例
        /// </summary>
        /// <param name="putDto">官网案例信息</param>
        /// <param name="adminDto">管理员信息</param>
        WebsiteCaseDto Update(WebsiteCasePutDto putDto, AdminDto adminDto);
        /// <summary>
        /// 删除官网案例
        /// </summary>
        /// <param name="websiteCaseId">官网案例Id</param>
        bool Delete(int websiteCaseId);
        /// <summary>
        /// 获取官网案例
        /// </summary>
        /// <param name="websiteCaseId">官网案例Id</param>
        WebsiteCaseDto Get(int websiteCaseId);
        /// <summary>
        /// 获取官网案例列表
        /// </summary>
        IEnumerable<WebsiteCaseViewDto> GetList();
        /// <summary>
        /// 获取官网案例分页列表
        /// </summary>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">官网案例每页数据条数</param>
        PageableList<WebsiteCaseViewDto> WebsiteQuery(int pageIndex, int pageSize);
        /// <summary>
        /// 获取官网案例分页列表
        /// </summary>
        /// <param name="enabled">启用</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">官网案例每页数据条数</param>
        PageableList<WebsiteCaseDto> Query(bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        /// <summary>
        /// 启用官网案例
        /// </summary>
        /// <param name="websiteCaseId">官网案例Id</param>
        bool Enabled(int websiteCaseId);
        /// <summary>
        /// 禁用官网案例
        /// </summary>
        /// <param name="websiteCaseId">官网案例Id</param>
        bool Disabled(int websiteCaseId);
        #endregion  成员方法
    }
}